#!/bin/bash
#检查服务或者进程是否异常脚本
#web_Server=www.baidu.com
#wget -P /data $web_Server &> /dev/nell
#[ $? -eq 0 ] && echo "$web_Server服务正常" && rm -rf /data/index.* || echo "$web_Server进程异常"

server=httpd
ps -aux | grep $server | grep -v 'grep' &>/dev/nell
[ $? -eq 0 ] && echo "$server服务正常" || echo "$server服务异常"
